package com.yc.chaoshi.cs_index.web.feign;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yc.chaoshi.entity.PmsFenlei3;
import com.yc.chaoshi.entity.PmsGoods;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@FeignClient("cs-manage")
public interface IManageAction {

    @GetMapping("chaoshi/pmsGoods/selectGoods")
    Page selectGoods(@RequestParam String name,
                    @RequestParam int oid,
                    @RequestParam int page);

    @GetMapping("chaoshi/pmsFenlei3/queryFenlei3")
    List<PmsFenlei3> queryFenlei3();

    @GetMapping("chaoshi/pmsFenlei3/updatedel")
    Integer updateDel(int id);

    @GetMapping("/chaoshi/pmsFenlei1/selectFenlei1")
    Page selectFenlei1(@RequestParam String aname,
                     @RequestParam int page);

    @GetMapping("/chaoshi/pmsFenlei2/selectFenlei2")
    Page selectFenlei2(@RequestParam String bname,
                       @RequestParam int page);
    @GetMapping("/chaoshi/pmsFenlei3/selectFenlei3")
    Page selectFenlei3(@RequestParam String cname,
                       @RequestParam int page);

    @GetMapping("/chaoshi/pmsBrand/selectbrand")
    Page selectbrand(@RequestParam String pname,
                       @RequestParam int page);

    @GetMapping("/chaoshi/pmsFenlei3/selectFlname")
    Page selectFlname();




}
